package com.sh.data.engine.application.model.request.integration;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @author: mengzheng.mhc
 * @date: 2024/6/11 18:23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema
public class DataSourceInfluxDBSaveRequest extends DataSourceSaveRequest {

    /**
     * InfluxDB API Token
     */
    @NotBlank(message = "API Token不能为空")
    @Schema(description = "API Token")
    private String apiToken;

    @NotBlank(message = "连接地址不能为空")
    @Schema(description = "连接地址")
    private String server;

    @NotBlank(message = "组织名称不能为空")
    @Schema(description = "组织名称")
    private String orgName;

    @NotBlank(message = "数据库不能为空")
    @Schema(description = "数据库")
    private String dbName;
}
